home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 26 / CU Amiga Magazine's Super CD-ROM 26 (1998)(EMAP Images)(GB)[!][issue 1998-09].iso / CUCD / Utilities / msql-2.0.4.1 / makegen / lex.mm < prev    next >
Text File  |  1998-06-20  |  344b  |  19 lines

  1. #!/bin/sh
  2.  
  3. . $MACRO_DIR/makegen/makegen.cf
  4.  
  5. src=$1
  6. outfile=`echo $src | sed "s/\.l\$/.c/"`
  7. obj=`echo $src | sed "s/\.l\$/.o/"`
  8.  
  9. echo    "$outfile : $src"
  10. echo    '    $(LEX) $(LEX_FLAGS)'" $src"
  11. echo    "    mv lex.yy.c $outfile"
  12. echo
  13. echo    "$obj : $outfile"
  14. echo    '    $(CC) $(CC_FLAGS)'" -c $outfile"
  15. echo
  16. echo    "clean ::"
  17. echo    "    rm -f $outfile lex.yy.*"
  18. echo
  19.